package com.topcoder.tco511;

public class SistersErasingLetters {
	public String whoWins(String word) {
		int N = word.length();
		char[] c = word.toCharArray();
		for (int i=N-2; i>=0; i--) {
			while (i>0 && c[i] >= c[i+1]) i--;
			if (c[i] >= c[i+1]) break;
			for (int j=i; j+2<N; j++) {
				if (c[j] < c[j+2] && j+3<N) return "Camomile";
				if (c[j] > c[j+2]) break;
			}
		}
		
		return "Romashka";
	}
}
